package com.web.klock.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author xukk
 */
@ConfigurationProperties(prefix = KlockConfig.PREFIX)
public class KlockConfig {

    public static final String PREFIX = "spring.redis.klock";

    private long waitTime = 60;
    private long leaseTime = 60;
    private String codec = "org.redisson.codec.JsonJacksonCodec";

    public long getWaitTime() {
        return waitTime;
    }

    public void setWaitTime(long waitTime) {
        this.waitTime = waitTime;
    }

    public long getLeaseTime() {
        return leaseTime;
    }

    public void setLeaseTime(long leaseTime) {
        this.leaseTime = leaseTime;
    }

    public String getCodec() {
        return codec;
    }

    public void setCodec(String codec) {
        this.codec = codec;
    }
}
